package net.fonline.apps;

import javax.microedition.lcdui.Graphics;
import net.fonline.apps.pathfinder.Maze;

/**
 * This class checks if there is a path existing and provides this path to the
 * monsters, so they can use it when it's their turn. An other point is, that
 * there will start no monster-spawn, if there is no valid path through the
 * maze.
 * @author Michael
 */
public class Cheatbot {

    public boolean cheat = false;

    public void move(double time) {
        LineTowerWars.ec.map.resetPath();
        Maze maze = new Maze(LineTowerWars.ec.map.x_dim, LineTowerWars.ec.map.y_dim);
        maze.solve();
    }

    public void update(Graphics g) {
    }
}
